package com.itgirl.config;

import com.itgirl.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//添加配置注解
@Configuration
public class UserConfig {
    @Bean
    public User user(){
        User user = new User();
        user.setAge(11);
        user.setName("张三");
        return user;
    }
}
